package game.controlling.ai;
import java.util.HashSet;
import java.util.Vector;

import tools.Point;
import game.controlling.Controller;
public abstract class AiController extends Controller {
	Point mp;
	Vector<String> rKeys, tKeys, pKeys;
	public AiController() {
		mp = new Point();
		rKeys = new Vector<String>();
		tKeys = new Vector<String>();
		pKeys = new Vector<String>();
	}
	@Override
	public boolean releasedGame(String c) {
		return rKeys.contains(c);
	}
	@Override
	public boolean touchedGame(String c) {
		return tKeys.contains(c);
	}
	@Override
	public boolean pressedGame(String c) {
		return pKeys.contains(c);
	}
	@Override
	public Point getMp() {
		return mp;
	}
	@Override
	public void clear() {
		rKeys.clear();
		pKeys.clear();
		tKeys.clear();
	}
}
